package com.sc.mapper;


import com.github.pagehelper.Page;
import com.sc.domain.House;
import com.sc.dto.HousePageDto;
import com.sc.vo.HousePageVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HouseMapper {
    boolean add(House house);

    boolean deleteHouse(Integer id);

    boolean updateHouse(House house);

    House selectById(Integer id);

    Page<HousePageVo> pageQuery(HousePageDto housePageDto);

    boolean deleteHouseByIds(List<Integer> ids);
}
